package com.offcn.feign;

import com.offcn.entity.Result;
import com.offcn.pojo.PayLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("order-service")//ORDER-SERVICE
public interface OrderFeign {

    @RequestMapping("/order/searchPayLogFromRedis")
    public Result<PayLog> searchPayLogFromRedis();

    @RequestMapping("/order/updateOrderStatus")
    public Result updateOrderStatus(@RequestBody Map map);
}
